package _14作业.t2;

import java.util.HashMap;
import java.util.Set;

public class Demo03 {
    public static void main(String[] args) {
        HashMap<Integer,String> hashMap = new HashMap<>();
        hashMap.put(1,"张三丰");
        hashMap.put(2,"周芷若");
        hashMap.put(3,"汪峰");
        hashMap.put(4,"灭绝师太");

        Set<Integer> set = hashMap.keySet();
        for (Integer integer : set) {
            System.out.println(integer+hashMap.get(integer));
        }

        hashMap.put(5,"李晓红");
        hashMap.remove(1);
        hashMap.put(2,"周琳");
    }
}
